package cn.da.shuai.cool.system.model.entity.role;

import cn.da.shuai.cool.common.entity.EntityBase;
import cn.da.shuai.cool.system.model.enums.role.RoleStatusType;
import cn.da.shuai.cool.system.model.enums.role.RoleTypeType;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * 系统角色表
 *
 * @author 大帅哥
 * @since 2025-01-03
 */
@Getter
@Setter
@TableName("cool_role")
@Schema(name = "CoolRole", description = "系统角色表")
public class CoolRole extends EntityBase {

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "角色名称")
    @TableField("role_name")
    private String roleName;

    @Schema(description = "角色权限字符串")
    @TableField("role_key")
    private String roleKey;

    @Schema(description = "角色类型: 1->超级管理员；2->授权管理员；3->数据管理员； 4->普通角色；")
    @TableField("role_type")
    private RoleTypeType roleType;

    @Schema(description = "显示顺序")
    @TableField("role_sort")
    private Integer roleSort;

    @Schema(description = "角色状态（1正常 2停用 3删除）")
    @TableField("status")
    private RoleStatusType status;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;
}